#include <cstring>
#include <iostream>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <errno.h>
#include <vector>
#include <string>
#include <cstdlib>
#include <stdint.h>
#include <fstream>
#include <algorithm>

using namespace std;

#define EXC_FILE_NOT_FOUND "file/directory not found"
#define EXC_FILE_IO "I/O error"
#define EXC_FILE_FORMAT_TYPE "format not recognized"
#define EXC_FILE_FORMAT_INVALID "invalid format"

#define FILE_TYPE_LECROY 1
#define FILE_TYPE_AGILENT 2
